<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>
		<%@ include file="/commons/include/head-meta.inc.jsp"%>
	</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<s:form action="doDemand_merge.action" id="mergeform" name="form1" namespace="/bpm" method="post" >
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				background="<s:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img
						src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
						height="12" /></td>
					<td>当前位置：分解需求单</td>
				</tr>
			</table>
			</td>
		</tr>
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>" class="leftbg">
		<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">	
			<tr>
				<td width="20%" valign="top">
				<table width="100%" height="400"  border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
					<tr>
						<td valign="top" align="center">
						<TABLE width="98%" cellSpacing=1 cellPadding=0
							align="center">
							<TR height=30>
								<TD align=left width="10%">
									<input type="button" value="提 交" onClick="subValidateForm('doDemand_merge.action');">
									
									<input type="button" value="返 回" onClick="location.href='flowReq_searchProdAdvReqFJList.action'">
									
									<input type="hidden" name="allReqCode" value="${allReqCode }">
									
								</TD>
							</TR>
						</table>
					<table width="98%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
										<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td  class="tdborderleftright">
								<table id="list" width="98%" cellSpacing=1 cellPadding=0 align="center" class=tablecolor2>
									<tr>
										<td width="10%" align="center" bgcolor="D6E3FA" align="center">需求单号</td>
										<td width="10%" align="center" bgcolor="D6E3FA" align="center">发起人</td>
										<td width="12%" align="center" bgcolor="D6E3FA" align="center">产品经理</td>
										<td align="center" bgcolor="D6E3FA">名称</td>
										<td align="center" bgcolor="D6E3FA">内容</td>
									</tr>
									<s:iterator value="#request.reqList">
									<tr>
										<td align="center">
											<s:property value="reqCode"/>																		
										</td>
										<td align="center">
											<s:property value="startPerson.name"/>																		
										</td>
										<td align="center">
											<s:property value="prodPerson.name"/>																		
										</td>
										<td>
											<s:property value="name"/>																		
										</td>
										<td>
											<s:property value="content"/>																		
										</td>
									</tr>
									</s:iterator>
								</table>
								<br>
								<!-- 开始 -->
								
								<table width="98%" border="0" cellspacing="0"
									cellpadding="7" align="center" class=tablecolor2>

									<tr>
										<td bgcolor="D6E3FA">
											<div align="right" class="STYLE2">
												<font color="red">*</font>需求名称：
											</div>
										</td>
										<td colspan="3">
											<input type="text" name="name" id="name" value="${allName }" size="110" dataType="Require" msg="必填">
										</td>
									</tr>
									<tr>
										<td bgcolor="D6E3FA">
											<div align="right" class="STYLE2">
												<font color="red">*</font>发 起 人：
											</div>
										</td>
										<td width="286">
											<select name="startPersonObj" style="width:120px" id="startPersonId" dataType="Require" msg="必选">
												<option value="${businessRequest.startPerson.id}">${businessRequest.startPerson.name}</option>
											</select>
											<button type="button" onclick="selectMainPerson('startPersonId')" style="margin-left: 5px">选择人员</button>

										</td>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												发起部门：
											</div>
										</td>
										<td width="268">
											${prodAdvReq.startDept.fullName}
										</td>
									</tr>
									<tr>
										<td bgcolor="D6E3FA">
											<div align="right" class="STYLE2">
												期望完成时间：
											</div>
										</td>
										<td>
											<s:date name="prodAdvReq.advanTime"
												format="yyyy年MM月dd日" />
										</td>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												发起时间：
											</div>
										</td>
										<td width="268">
											<s:date name="prodAdvReq.begin"
												format="yyyy年MM月dd日 hh:mm" />
										</td>
									</tr>

									<tr>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												<font color="red">*</font>产品经理：
											</div>
										</td>
										<td width="268">
											<select name="prodPerson" style="width:120px" id="prodPersonId" dataType="Require" msg="必选">
												<option value="${businessRequest.prodPerson.id}">${businessRequest.prodPerson.name}</option>
												<s:iterator value="#request.prodList">
													<option value="${id }">${name }</option>	
												</s:iterator>
											</select>
											<%-- 
											<button type="button" onclick="selectMainPerson('prodPersonId')" style="margin-left: 5px">选择人员</button>
											--%>
										</td>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												产品部门：
											</div>
										</td>
										<td>
											${prodAdvReq.prodDept.fullName}
										</td>
									</tr>
									<tr>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												需求类别：
											</div>
										</td>
										<td width="268">
											<s:select name="typeId" list="types"
												listKey="name" listValue="name" theme="css_xhtml" />
										</td>
										<td bgcolor="D6E3FA" width="140">
											<div align="right" class="STYLE2">
												重要性：
											</div>
										</td>
										<td width="268">
											<s:select name="importanceId"
												list="importances" listKey="name" listValue="name"
												theme="css_xhtml" />
										</td>
										


									</tr>
									<tr>
										<td bgcolor="D6E3FA">
											<div align="right" class="STYLE2">
												<font color="red">*</font>优化内容：
											</div>
										</td>
										<td colspan="3">
											<textarea name="content" style="width: 95%;height: 80px" dataType="Require" msg="必填">${allContent}</textarea>
										</td>
									</tr>
									<tr>
										<td width="111" bgcolor="D6E3FA">
											<div align="right" class="STYLE2">
												附&nbsp;&nbsp;&nbsp;&nbsp;件：
											</div>
										</td>
										<td colspan="3">
											<table width="100%" border="0" class=tablecolor2>
												<tr>
													<td width="40%" align="center" bgcolor="D6E3FA">
														附件名称
													</td>
													<td width="20%" align="center" bgcolor="D6E3FA">
														附件类型
													</td>
													<td width="15%" align="center" bgcolor="D6E3FA">
														上传人
													</td>
													<td width="15%" align="center" bgcolor="D6E3FA">
														上传时间
													</td>
												</tr>
												<s:iterator id="reqDocu" value="#request.reqDocus">
													<input type="hidden" name="attachIDs"
														value="<s:property value="id" />" />
													<tr>
														<td>
															<a
																href="<s:url value="/bpm/showDocu.action?reqDocu.id="/><s:property value="id" />"
																target="_blank"> <s:property value="fullName" />
															</a>
															<input type="hidden" name="reqDocuId" value="<s:property value="id" />">
														</td>
														<td align="center">
															<s:if test="docType==null">
																其他附件
															</s:if>
															<s:else>
																<s:property value="docType.name" />
															</s:else>
														</td>
														<td align="center">
															<s:property value="creator" />
														</td>
														<td align="center">
															<s:property value="begin" />
														</td>
													</tr>
												</s:iterator>
											</table>
											<br>
										</td>
									</tr>
								</table>
								
								<!-- 结束 -->
							</td>
						</tr>
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
										<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
</s:form>			
</body>
</html>